package day06.Lambda;

import org.junit.Test;

public class LambdaDemo {

    @Test
    public void test(){
        InterfaceDemo interfaceDemo=(int a) -> {
            System.out.println("a:  "+a);
        };
        interfaceDemo.lambdaTest(1);
    }

    @Test
    public void test1(){
        InterfaceDemo interfaceDemo= (int a) -> {
            System.out.println(a);
//            interfaceDemo.lambdaTest(12);
        };
    }


}
